#ifndef __MF1CardWork_H
#define __MF1CardWork_H

#include "MF1Card.h"
#include "BoardData.h"
#include "buzzer.h"
#include <stdio.h>


void RC522_init(void);
void card_task_read_start(void);
int8_t card_step_prelude(void);
int8_t card_step_isNewCard(void);
int8_t card_data_readAndParse(void);
int8_t card_write_pwd(void);
int8_t card_write_data(unsigned char *riteData);
int8_t card_write_cash(long writeCash);
int8_t card_write_freeMem(char *menberId);
int8_t card_update_PWD(unsigned char *oldPwd,unsigned char *newPwd);
int8_t card_write_chgCtrlSets(uint16_t chgPrice,uint16_t chgTime,uint16_t chgPowNormal,uint16_t chgEnergy);
void parseCardData(void);

#endif

